FLAGS = -I /usr/lib/ocaml/pcre                        \
	-I /usr/lib/ocaml/netsys 		      \
	-I /usr/lib/ocaml/netstring 		      \
	-I /usr/lib/ocaml/netcgi2 		      \
	-I /usr/lib/ocaml/netcgi_apache 	      \
	/usr/lib/ocaml/str.cma 			      \
	/usr/lib/ocaml/unix.cma 		      \
	/usr/lib/ocaml/pcre/pcre.cma 		      \
	/usr/lib/ocaml/netsys/netsys.cma 	      \
	/usr/lib/ocaml/netstring/netstring.cma 	      \
	/usr/lib/ocaml/netstring/netaccel.cma 	      \
	/usr/lib/ocaml/netstring/netaccel_link.cmo    \
	/usr/lib/ocaml/netcgi2/netcgi.cma 	      \
	/usr/lib/ocaml/netcgi_apache/netcgi_apache.cma 

OCAMLC = ocamlc 
CGIFILE = index.cgi
MAINFILE = index.ml

clean:
	rm *.cmo
all:
	$(OCAMLC) -o $(CGIFILE) $(FLAGS) $(MAINFILE)
# gs:
# 	ocamlc  $(FLAGS) -c gs.ml
# puis  ocamlc -o index.cgi       $(FLAGS) gs.cmo index.ml
# ocamlfind ocamlc -verbose -package str,netcgi2,netcgi_apache -linkpkg -o index.cgi index.ml
